//
//  CZConst.swift
//  GZWeibo009
//
//  Created by gzxzmac on 16/3/21.
//  Copyright © 2016年 gzxzmac. All rights reserved.
//

import UIKit

/// 自定义Log,需要在build settings 里面搜索 preprocessor Macros (OC的配置方式), 在搜索 swift flag 配置debug "-D" "DEBUG"
func CZPrint(file: String = __FILE__, line: Int = __LINE__, function: String = __FUNCTION__, msg: Any) {
    #if DEBUG
        print("\((file as NSString).lastPathComponent)[\(line)行], \(function): \(msg)")
    #endif
}

let CZBaseURL = NSURL(string: "https://api.weibo.com/")

// MARK: - 授权登陆相关
/// 申请应用时分配的AppKey
let client_id = "4003165944"

let client_secret = "bcb84246a21dfca580bd65bc314eb664"

/// 授权回调地址
let redirect_uri = "http://www.baidu.com/"

// MARK: -
/// 默认动画时间
let CZDefaultDuration: NSTimeInterval = 0.25

/// 新特性界面的页数
let CZNewFeatuerPageCount = 4

// MARK: - 微博cell相关
let CZStatusCellMargin: CGFloat = 8

let CZStatusCellContentSize: CGFloat = 14

let CZStatusCellBottomDefaultFontSize: CGFloat = 11

// MARK: -  微博cell配图相关
/// 配图之间的间距
let CZStatusPictureMargin: CGFloat = 4

/// 配图最大列数
let CZStatusPictureMaxColumn = 3

/// 配图cell的大小: (屏幕宽度-配图左右的间距 - cell之间的间距) / cell的数量
let CZStatusPictureCellWH = (UIScreen.width - 2 * CZStatusCellMargin - CGFloat(CZStatusPictureMaxColumn - 1) * CZStatusPictureMargin) / CGFloat(CZStatusPictureMaxColumn)

/// 发微博界面微博最大长度
let CZComposeVCStatusMaxLength = 25
